package com.jt.text.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@PropertySource(value="classpath:/msg.properties",encoding = "utf-8")
public class HelloController {
    @Value("${msg.hello}")
    private String msg;
    @Value("${pro.msg}")
    private String proMsg;
    @RequestMapping("/hello")
    public String hello(){
        return msg+"||"+proMsg;
    }
}
